﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
   

    public class A_BackSpace : A_Action
    {
        public A_BackSpace()
        {
            base.HotKey = Keys.Back;
        }

        public override string ActionName()
        {
            return "backspace";
        }

        public override bool CanHandleKeyDown()
        {
            return false;
        }

        public override bool Execute()
        {
            base.myOwnerDocument._BackSpace();
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

